package com.erp.freight.domain.bo;

import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Erp物流服务线路业务对象 erp_logistics_service_info
 *
 * @author erp
 * @date 2023-07-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpLogisticsServiceInfoBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 运输方式名称
     */
    @NotBlank(message = "运输方式名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logisticsServiceName;

    /**
     * 运输方式编号
     */
    @NotBlank(message = "运输方式编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logisticsServiceCode;

    /**
     * 运输时效
     */
    @NotBlank(message = "运输时效不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transportTime;

    /**
     * 仓库名称
     */
    @NotBlank(message = "仓库名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseName;

    /**
     * 收件人
     */
    @NotBlank(message = "收件人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseContacts;

    /**
     * 收件人电话
     */
    @NotBlank(message = "收件人电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehousePhone;

    /**
     * 交货地址
     */
    @NotBlank(message = "交货地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseAddress;

    /**
     * 状态 0-未启用 1-启用
     */
//    @NotNull(message = "状态 0-未启用 1-启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 乐观锁
     */
//    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
